package com.huika.dealontop.control.homepage.utils.ratingBar;

import android.content.Context;
import android.graphics.Bitmap;
import android.util.AttributeSet;
import android.widget.RatingBar;

/**
 * Created by cailu on 2016/1/20.
 */
public class CustomRatingBar extends RatingBar {


    private Bitmap mSampleTile;

    public CustomRatingBar(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    public CustomRatingBar(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public CustomRatingBar(Context context) {
        super(context);
    }

    @Override
    protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
//            // TODO: Once ProgressBar's TODOs are gone, this can be done more
//        InputStream inputStream = getResources().openRawResource(R.mipmap.ratting_flase);
//        Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
//
//            final int width = bitmap.getWidth()*5;
//            setMeasuredDimension(resolveSizeAndState(width, widthMeasureSpec, 0),
//                    getMeasuredHeight());

    }

}
